<template>
	<view>
		<u-sticky>
			<view class="top">
				<u-subsection bgColor="#EFEFEF" height="80" fontSize="30" buttonColor="#FB683D" :current="current"
					inactive-color="#333333" active-color="#FFFFFF" :list="list3" @change="change"></u-subsection>
			</view>
		</u-sticky>
		<view class="content" v-if="current==0">
			<view v-if="list.length>0">
				<view class="list2" v-if="item.show" v-for="(item,index) in list" :key="index">
					<view class="t1">
						<view class="name">
							收获价值
						</view>
						<view class="icon">
							{{item.title}}
						</view>
					</view>
					<view class="t2">
						{{item.price}} <text>Fmb</text>
					</view>
					<view class="t3">
						<view class="left">
							产出获得
						</view>
						<view class="right">
							{{item.time}}
						</view>
					</view>
				</view>
			</view>
			<view class="none" v-else>
				<view class="none-view">
					<image src="../../../static/image/none.png" class="none-image"></image>
					<view class="none-name">
						暂无相关数据~
					</view>
				</view>
			</view>
		</view>
		<view class="content" v-else>
			<view v-if="list.length>0">
				<view class="list" v-if="item.show" v-for="(item,index) in list" :key="index">
					<view class="title">
						<image :src="img_pre+ item.manor_logo"></image>
						<view class="name">
							{{item.title}}
						</view>
						<view class="id">
							<view class="icon">
								ID
							</view>
							<view :style="item.time==0?'color: #F46813;':''">
								<text v-if="item.from_split==1">新</text>
								{{item.pid}}
							</view>
						</view>
					</view>
					<view class="up">
						<view class="right">
							<view class="number font">
								{{item.output}} <text>Fmb</text>
							</view>
							<view class="name">
								实际产出
							</view>
						</view>
						<view class="left">
							<view class="auto">
								<view class="name">
									交易价值
								</view>
								<view class="text" style="color:#FD3D28;">
									{{item.price}}<text>Fmb</text>
								</view>
							</view>
							<view class="auto">
								<view class="name">
									蜂巢状态
								</view>
								<view class="text">
									<text style="font-size: 30rpx;">{{item.text}}</text>
								</view>
							</view>
							<view class="auto">
								<view class="name">
									交易时间
								</view>
								<view class="time">
									{{item.time}}
								</view>
							</view>
						</view>
					</view>
					<view class="down">
						<button type="default" v-if="item.type=='HOLD_PRODUCED'"
							@click="getCode(index,item)">挂卖</button>
						<button type="default" v-if="item.type=='HOLD_INITIAL'" @click="getCode(index,item)">挂卖</button>
						<button type="default" v-if="item.type=='FULL_AMOUNT'"
							@click="getApplySplit(index,item)">拆分</button>
						<button type="default" v-if="item.type=='FULL_AMOUNT'&&false" style="margin-left: 24rpx;"
							@click="getHarvest(index,item)">兑换蜂钻</button>
						<button type="default" v-if="item.type=='FULL_AMOUNT'" style="margin-left: 24rpx;"
							@click="getHarvest(index,item)">收获</button>
						<button type="default" v-if="item.type=='HOLD_PRODUCED'" style="margin-left: 24rpx;"
							@click="getHarvest(index,item)">收获</button>
						<button type="default" v-if="item.type=='TAKE_DELIVERY_MANUAL'&&item.address_finish==1"
							@click="getLogistics(index,item)" style="">查看物流</button>
						<button type="default" v-if="item.type=='TAKE_DELIVERY_AUTO'&&item.address_finish==1"
							@click="getLogistics(index,item)" style="">查看物流</button>
						<button type="default" v-if="item.type=='ONSALE'" @click="seePingZeng(index)">查看凭证</button>
						<button type="default" v-if="item.type=='TAKE_DELIVERY_AUTO'&&item.address_finish==0"
							@click="id=index,json=item,addSite=true" style="">添加地址</button>
						<button type="default" v-if="item.type=='TAKE_DELIVERY_AUTO'&&item.address_finish==0"
							@click="id=index,json=item,appeal=true" style="margin-left: 24rpx;">申诉</button>
					</view>
				</view>
			</view>
			<view class="none" v-else>
				<view class="none-view">
					<image src="../../../static/image/none.png" class="none-image"></image>
					<view class="none-name">
						暂无相关数据~
					</view>
				</view>
			</view>
		</view>
		<u-popup v-model="appeal" :closeable="true" borderRadius="10" mode="center">
			<view class="logistics">
				<view class="popup_top"></view>
				<view class="_view">
					<view class="title">
						申诉
					</view>
					<view class="appeal">
						因超过产出时间12小时，该蜂巢
					</view>
					<view class="appeal">
						已自动收获，是否确认申诉
					</view>
				</view>
				<button type="default" class="button" @click="checkSafePasswordEmpty('appeal')">确认申诉</button>
				<view class="popup_top"></view>
			</view>
		</u-popup>
		<u-popup v-model="logistics" :closeable="true" borderRadius="10" mode="center">
			<view class="logistics">
				<view class="popup_top"></view>
				<view class="_view">
					<view class="title">
						物流信息
					</view>
					<view class="logistics-content">
						<view class="list" v-for="(item,index) in logisticsList" :key="index">
							<view class="icon"></view>
							<view class="right">
								<view>
									快递公司:{{item.company}}
								</view>
								<view>
									快递单号:{{item.number}}
								</view>
								<view>
									发出时间:{{item.createtime}}
								</view>
							</view>
						</view>
					</view>
				</view>
				<button type="default" class="button" @click="logistics=false">我知道了</button>
				<view class="popup_top"></view>
			</view>
		</u-popup>
		<u-popup v-model="harvest" :closeable="true" borderRadius="10" mode="center">
			<view class="harvest">
				<view class="popup_top"></view>
				<view class="_view">
					<view class="title">
						收获
					</view>
					<view class="text">
						您的蜂巢是{{json.title}}，当前价值
					</view>
					<view class="number font">
						{{json.price}} <text>蜜贝</text>
					</view>
					<view class="select" @click="abc">
						<view class="da omit">
							{{label}}
						</view>
						<view class="xiao">></view>
					</view>
				</view>
				<button type="default" class="button" @click="checkSafePasswordEmpty('getharvest')">确认收获</button>
				<view class="popup_top"></view>
			</view>
		</u-popup>
		<u-popup v-model="addSite" :closeable="true" borderRadius="10" mode="center">
			<view class="harvest">
				<view class="popup_top"></view>
				<view class="_view">
					<view class="title">
						选择地址
					</view>
					<view class="select" @click="abc">
						<view class="da omit">
							{{label}}
						</view>
						<view class="xiao">></view>
					</view>
				</view>
				<button type="default" class="button" @click="checkSafePasswordEmpty('appendAddress')">确认</button>
				<view class="popup_top"></view>
			</view>
		</u-popup>
		<u-popup v-model="Hang" :closeable="true" borderRadius="10" mode="center">
			<view class="harvest">
				<view class="popup_top"></view>
				<view class="_view">
					<view class="title">
						挂卖
					</view>
					<view class="text">
						您的蜂巢是{{json.title}}，当前价值
					</view>
					<view class="number font" v-if="json.type=='HOLD_PRODUCED'">
						{{json.price}} <text>蜜贝</text>
					</view>
					<view class="number font" v-else>
						{{add(json.price,json.output)}} <text>蜜贝</text>
					</view>
				</view>
				<button type="default" class="button" @click="checkSafePasswordEmpty('doSale')">确认挂卖</button>
				<view class="popup_top"></view>
			</view>
		</u-popup>
		<u-select v-model="site" :list="list1" @confirm="confirm"></u-select>
		<u-keyboard mode="number" :dot-enabled="false" v-model="pay" :tooltip="false" @change="onChange"
			@backspace="onBackspace">
			<view>
				<view class="u-text-center">
					<view class="u-text-name">
						二级密码
					</view>
					<view class="u-text-text">
						您当前正在进行交易，为确保账户安全请输入二级 密码验证身份
					</view>
				</view>
				<view class="u-flex u-row-center">
					<u-message-input mode="box" :maxlength="6" :dot-fill="true" v-model="password"
						:disabled-keyboard="true"></u-message-input>
				</view>
				<view class="u-text-center u-padding-top-10 u-padding-bottom-20 tips"></view>
			</view>
		</u-keyboard>
		<u-popup borderRadius="10" mode="center" :closeable="true" v-model="code">
			<view class="popup">
				<view class="_view">
					<view class="title">
						上传收款码
					</view>
					<view class="cont">
						<view class="name">
							您还未上传收款码，不上传将 影响您的后续操作，请尽快上传
						</view>
					</view>
					<view class="code">
						<image src="../../../static/image/code.png"></image>
					</view>
				</view>
				<u-button type="success" @click="toPage('/pages/htmlA/setting/collection')" :ripple="true"
					class="button">立即前往</u-button>
				<view class="popup_top"></view>
			</view>
		</u-popup>
		<u-popup v-model="red" :closeable="true" borderRadius="10" mode="center">
			<view class="harvest">
				<view class="popup_top"></view>
				<view class="_view">
					<view class="title">
						挂卖提示
					</view>
					<view class="date" v-for="(item,index) in banOnsale" :key="index">
						{{formatSeconds(item.second_start)+"-"+formatSeconds(item.second_end)}}
					</view>
					<view class="text">
						时间段内不可挂卖蜂巢
					</view>
				</view>
				<button type="default" class="button" @click="red=false">确认</button>
				<view class="popup_top"></view>
			</view>
		</u-popup>
	</view>
</template>

<script>
	var than;
	export default {
		data() {
			return {
				current: 0,
				list1: [],
				code: false,
				addSite: false,
				logistics: false,
				site: false,
				harvest: false,
				pay: false,
				red: false,
				Hang: false,
				appeal: false,
				logisticsList: [],
				password: "",
				background: {
					'background': 'transparent'
				},
				title: "我的蜂巢",
				list2: [{
						name: "当前持有"
					},
					{
						name: "待收获"
					},
					{
						name: "已收获"
					}
				],
				label: "请选择收货地址",
				value: "",
				page: 1,
				info: {},
				list: [],
				json: {
					price: 0,
					output: 0,
					title: ""
				},
				type: "",
				id: 0,
				list3: ['产出明细', '产出订单'],
				banOnsale: []
			}

		},
		onLoad(option) {
			than = this;
			than.finishList();
			than.post("api/address/addressList", null, function(data) {
				var json = {
					value: data.default.address_id,
					label: data.default.region + data.default.detail
				}
				than.list1.push(json)
				for (let i in data.other) {
					var other = data.other[i]
					var json1 = {
						value: other.address_id,
						label: other.region + other.detail
					}
					than.list1.push(json1)
				}
			})
		},
		onReachBottom() {
			than.page++
			switch (than.current) {
				case 0:
					than.finishList();
					break;
				case 1:
					than.harvestList();
					break;
				default:
					break;
			}
		},
		methods: {
			change(e) {
				than.page = 1;
				than.current = e;
				switch (e) {
					case 0:
						than.finishList();
						break;
					case 1:
						than.harvestList();
						break;
					default:
						break;
				}
			},
			formatSeconds(value) {
				let result = parseInt(value)
				let h = Math.floor(result / 3600) < 10 ? '0' + Math.floor(result / 3600) : Math.floor(result / 3600);
				let m = Math.floor((result / 60 % 60)) < 10 ? '0' + Math.floor((result / 60 % 60)) : Math.floor((result /
					60 % 60));
				let s = Math.floor((result % 60)) < 10 ? '0' + Math.floor((result % 60)) : Math.floor((result % 60));
				let res = '';
				if (h !== '00') res += `${h}：`;
				if (m !== '00') res += `${m}`;
				else res += '00';
				return res;
			},
			banOnsaleList() {
				than.red = true;
				than.post("api/order/banOnsaleList", null, function(data) {
					than.banOnsale = data;
				})
			},
			getHarvest(index, item) {
				than.id = index
				than.json = item
				than.harvest = true
			},
			getApplySplit(index, item) {
				than.id = index
				than.json = item
				than.checkSafePasswordEmpty('applySplit')
			},
			getLogistics(index, item) {
				than.id = index;
				than.post("api/order/logistics", {
					orderno: item.orderno
				}, function(data) {
					than.logistics = true;
					than.logisticsList = data;
				})
			},
			abc() {
				if (than.list1.length == 0) {
					than.toast("您还未上传收货地址请到个人中心-地址管理上传收货地址在进行操作")
					return false
				}
				than.site = true
			},
			getCode(index, item) {
				than.post("api/center/seeCollectionPictures", null, function(data) {
					if (data.length == 0) {
						than.code = true;
					} else {
						than.id = index
						than.json = item
						than.Hang = true;
					}
				})
			},
			seePingZeng(index) {
				than.id = index;
				if (than.list[than.id].trade_status == 1) {
					/* 		than.toPage('/pages/htmlB/voucher/voucher?type=2&orderno=' + than.list[than.id].orderno)
					 */
				} else {
					than.toast("未上传凭证")
				}
			},
			checkSafePasswordEmpty(text) {
				than.type = text
				than.post("api/member/checkSafePasswordEmpty", null, function(data) {
					if (parseInt(data) == 0) {
						than.toast("未设置二级密码")
						uni.navigateTo({
							url: "/pages/htmlA/setting/twopassword"
						})
					} else {
						than.pay = true;
					}
				})
			},
			finishList() {
				than.post("api/order/finishList", {
					page: than.page
				}, function(data) {
					for (let i in data) {
						data[i].show = true
						switch (data[i].type) {
							case 'TAKE_DELIVERY_AUTO':
								data[i].text = "自动收获"
								break;
							case 'TAKE_DELIVERY_MANUAL':
								data[i].text = "已收获"
								break;
							case 'ONSALE':
								data[i].text = "已挂卖"
								break;
							case 'SELL_OUT':
								data[i].text = "已卖出"
								break;
							case 'APPEALING':
								data[i].text = "申诉中"
								break;
							case 'GAMEOVER':
								data[i].text = "发货完成"
								break;
							case 'APPLY_SPLIT':
								data[i].text = "拆分审核"
								break;
							case 'FINISH_SPLIT':
								data[i].text = "已拆分"
								break;
							default:
								break;
						}
					}
					if (than.page == 1) {
						than.list = data;
					} else {
						than.list = than.list.concat(data)
					}
				})
			},
			harvestList() {
				than.post("api/order/harvestList", {
					page: than.page
				}, function(data) {
					for (let i in data) {
						data[i].show = true
						switch (data[i].type) {
							case 'TAKE_DELIVERY_AUTO':
								data[i].text = "自动收获"
								break;
							case 'TAKE_DELIVERY_MANUAL':
								data[i].text = "已收获"
								break;
							case 'ONSALE':
								data[i].text = "已挂卖"
								break;
							case 'SELL_OUT':
								data[i].text = "已卖出"
								break;
							case 'APPEALING':
								data[i].text = "申诉中"
								break;
							case 'GAMEOVER':
								data[i].text = "发货完成"
								break;
							case 'APPLY_SPLIT':
								data[i].text = "拆分审核"
								break;
							case 'FINISH_SPLIT':
								data[i].text = "已拆分"
								break;
							default:
								break;
						}
					}
					if (than.page == 1) {
						than.list = data;
					} else {
						than.list = than.list.concat(data)
					}
				})
			},
			doSale() {
				than.post("api/order/doSale", {
					orderno: than.json.orderno,
					password: than.password
				}, function(data) {
					than.Hang = false;
					than.list[than.id].show = false;
					than.password = "";
					than.toast('挂卖' + data)
				})
			},
			getharvest() {
				if (!than.value) {
					than.toast("未选择地址")
					return false
				}
				than.post("api/order/harvest", {
					orderno: than.json.orderno,
					address_id: than.value,
					password: than.password
				}, function(data) {
					than.harvest = false;
					than.password = "";
					than.list[than.id].show = false;
					than.toast('收获' + data)
				})
			},
			appealPost() {
				than.post("api/order/appeal", {
					orderno: than.json.orderno,
					password: than.password
				}, function(data) {
					than.addSite = false;
					than.password = "";
					than.toast(data)
				})
			},
			applySplit() {
				than.post("api/order/applySplit", {
					orderno: than.json.orderno,
					password: than.password
				}, function(data) {
					than.list[than.id].show = false;
					than.password = "";
					than.toast('拆分' + data)
				})
			},
			appendAddress() {
				if (!than.value) {
					than.toast("未选择地址")
					return false
				}
				than.post("api/order/appendAddress", {
					orderno: than.json.orderno,
					address_id: than.value,
					password: than.password
				}, function(data) {
					than.addSite = false;
					than.list[than.id].type = 'TAKE_DELIVERY_MANUAL';
					than.password = "";
					than.toast(data)
				})
			},
			confirm(e) {
				than.label = e[0].label
				than.value = e[0].value
			},
			onChange(val) {
				if (this.password.length < 6) {
					this.password += val;
				}

				if (this.password.length >= 6) {
					switch (than.type) {
						case 'doSale':
							than.doSale();
							break;
						case 'getharvest':
							than.getharvest();
							break;
						case 'appendAddress':
							than.appendAddress();
							break;
						case 'appeal':
							than.appealPost();
							break;
						case 'applySplit':
							than.applySplit();
							break;
						default:
							break;
					}
					than.pay = false;
				}
			},
			onBackspace(e) {
				if (this.password.length > 0) {
					this.password = this.password.substring(0, this.password.length - 1);
				}
			}
		}
	}
</script>

<style lang="less">
	.fruits {
		width: 131rpx;
		height: 151rpx;
		position: fixed;
		left: 23rpx;
		bottom: 44rpx;
	}

	.menu {
		height: 98rpx;
		display: flex;
		align-items: center;

		.right {

			margin-left: auto;
			display: flex;
			align-items: center;
			font-size: 28rpx;
			font-family: PingFang SC;
			font-weight: 500;
			color: #848484;

			image {
				margin-left: 14rpx;
				width: 28rpx;
				height: 28rpx;
			}
		}
	}

	.hint {
		height: 100%;
		position: fixed;
		width: 100%;

		image {
			width: 100%;
		}
	}

	.popup {
		width: 535rpx;
		background: linear-gradient(0deg, #fcfdff, #e3ebfe);

		.popup_top {
			height: 30rpx;
		}

		._view {
			background: #FFFFFF;
			margin: 0 30rpx 30rpx;
			padding-bottom: 20rpx;

			.title {
				padding-top: 20rpx;
				height: 80rpx;
				line-height: 80rpx;
				text-align: center;
				font-size: 38rpx;
				font-family: PingFang SC;
				font-weight: bold;
				color: #333333;
			}

			.code {
				text-align: center;
				padding-bottom: 40rpx;

				image {
					width: 81rpx;
					height: 81rpx;
				}
			}

			.cont {
				margin-top: 20rpx;
				height: 150rpx;
				text-align: center;
				font-size: 28rpx;
				color: #333333;

				.name {
					margin: 0 90rpx;
				}

				.text {
					display: flex;
					align-items: center;
					justify-content: center;
					color: #F46813;
					font-size: 28rpx;

					text {
						margin: 0 10rpx;
						font-size: 48rpx;
					}
				}
			}
		}

		.button {
			border-radius: 40rpx;
			border: 0;
			width: 314rpx;
			height: 80rpx;
			color: #835529;
			background: linear-gradient(0deg, #FBDE80, #FDEBA1);
			box-shadow: 0px 6rpx 8rpx 0px rgba(170, 170, 170, 0.16);
		}
	}



	.logistics {
		width: 535rpx;
		text-align: center;
		background: linear-gradient(0deg, #fcfdff, #e3ebfe);

		.popup_top {
			height: 30rpx;
		}

		._view {
			background: #FFFFFF;
			margin: 0 30rpx 30rpx;
			padding-bottom: 20rpx;

			.title {
				height: 114rpx;
				line-height: 114rpx;
				font-size: 38rpx;
				font-family: PingFang SC;
				font-weight: bold;
				color: #333333;
			}

			.appeal {
				font-size: 28rpx;
				font-family: PingFang SC;
				font-weight: 500;
				color: #666666;
			}

			.logistics-content {
				padding: 0 39rpx;

				.list {
					display: flex;
					align-items: center;
					height: 175rpx;
					background: #F5F5F5;
					border-radius: 10rpx;
					margin-bottom: 15rpx;

					.icon {
						width: 20rpx;
						height: 20rpx;
						margin: auto 20rpx;
						background: linear-gradient(90deg, #FFC31E, #FED053);
						border-radius: 10rpx;
					}

					.right {
						text-align: left;

						view {
							height: 45rpx;
						}
					}
				}
			}
		}

		.button {
			margin: 36rpx auto 0;
			width: 314rpx;
			height: 80rpx;
			border-radius: 40rpx;
			font-size: 32rpx;
			font-family: PingFang SC;
			font-weight: bold;
			color: #835529;
			background: linear-gradient(0deg, #FBDE80, #FDEBA1);
			box-shadow: 0px 6rpx 8rpx 0px rgba(170, 170, 170, 0.16);
			line-height: 80rpx;
		}
	}

	.harvest {
		width: 535rpx;
		text-align: center;
		background: linear-gradient(0deg, #fcfdff, #e3ebfe);

		.popup_top {
			height: 30rpx;
		}

		._view {
			background: #FFFFFF;
			margin: 0 30rpx 30rpx;
			padding-bottom: 20rpx;

			.title {

				height: 114rpx;
				line-height: 114rpx;
				font-size: 38rpx;
				font-family: PingFang SC;
				font-weight: bold;
				color: #333333;
			}

			.text {
				font-size: 28rpx;
				font-family: PingFang SC;
				font-weight: 500;
				color: #666666;
				line-height: 1;
			}

			.date {
				margin-bottom: 29rpx;
				font-size: 28rpx;
				font-family: PingFang SC;
				font-weight: 500;
				color: #666666;
			}

			.number {
				font-size: 48rpx;
				font-weight: bold;
				color: #FEC31D;
				font-style: initial;
				margin-top: 21rpx;
				margin-bottom: 60rpx;

				text {
					font-size: 28rpx;
					font-family: PingFang SC;
					font-weight: bold;
				}
			}

			.select {
				width: 413rpx;
				height: 100rpx;
				line-height: 1;
				background: #FFFFFF;
				border: 1rpx solid #8E8E8E;
				border-radius: 20rpx;
				margin: auto;
				display: flex;
				align-items: center;
				font-size: 28rpx;
				font-family: PingFang SC;
				font-weight: 500;
				color: #666666;

				.da {
					padding: 0 40rpx;
				}

				.xiao {
					margin-left: auto;
					margin-right: 41rpx;
				}
			}
		}

		.button {
			margin: 71rpx auto 0;
			width: 314rpx;
			height: 80rpx;
			border-radius: 40rpx;
			font-size: 32rpx;
			font-family: PingFang SC;
			font-weight: bold;
			color: #835529;
			background: linear-gradient(0deg, #FBDE80, #FDEBA1);
			box-shadow: 0px 6rpx 8rpx 0px rgba(170, 170, 170, 0.16);
			line-height: 80rpx;
		}

	}

	.content {
		padding: 0rpx 36rpx 0;

		.list2 {
			border-radius: 20rpx;
			background: #FFFFFF;
			margin-bottom: 24rpx;
			padding: 24rpx;

			.t1 {
				display: flex;
				align-items: center;
				height: 60rpx;

				.name {
					font-size: 30rpx;
					font-family: PingFang SC;
					font-weight: 500;
					color: #41485D;
				}

				.icon {
					margin-left: 15rpx;
					height: 32rpx;
					line-height: 32rpx;
					padding: 0 13rpx;
					background: #F5E5D8;
					font-size: 22rpx;
					font-family: PingFang SC;
					font-weight: 500;
					color: #B8845C;

				}
			}

			.t2 {
				font-size: 56rpx;
				font-family: DIN;
				font-weight: bold;
				color: #EE5045;

				text {
					font-size: 30rpx;
					margin-left: 10rpx;
				}
			}

			.t3 {
				display: flex;
				align-items: center;
				height: 60rpx;

				.left {
					font-size: 24rpx;
					font-family: PingFang SC;
					font-weight: 500;
					color: #8B93A2;
				}

				.right {
					margin-left: auto;
					font-size: 24rpx;
					font-family: PingFang SC;
					font-weight: 500;
					color: #8B93A2;
				}
			}
		}

		.list {
			border-radius: 20rpx;
			background: #FFFFFF;
			margin-bottom: 24rpx;

			.title {
				height: 88rpx;
				border-bottom: 1px solid #F7F7F7;
				padding: 0 27rpx;
				display: flex;
				align-items: center;

				image {
					width: 56rpx;
					height: 62rpx;
				}

				.name {
					margin-left: 11rpx;
					font-size: 30rpx;
					font-weight: bold;
				}

				.id {
					display: flex;
					align-items: center;
					font-size: 22rpx;
					font-family: PingFang SC;
					font-weight: bold;
					color: #666666;
					margin-left: auto;

					.icon {
						margin-right: 5rpx;
						width: 30rpx;
						height: 24rpx;
						background: #FEC31D;
						border-radius: 4rpx;
						font-size: 18rpx;
						font-weight: 500;
						color: #FFFFFF;
						text-align: center;
						line-height: 24rpx;
					}
				}
			}

			.up {
				display: flex;
				height: 200rpx;
				align-items: center;
				padding: 0 26rpx;

				.left {
					width: 380rpx;
					margin-left: auto;

					.auto {
						height: 55rpx;
						display: flex;
						align-items: center;

						.name {
							font-size: 30rpx;
							font-weight: bold;
							color: #666666;
							margin-right: 17rpx;
						}

						.text {

							font-size: 32rpx;
							font-weight: bold;
							color: #333333;

							text {
								font-size: 28rpx;
							}
						}

						.time {
							font-size: 28rpx;
							font-family: PingFang SC;
							font-weight: 500;
							color: #999999;
						}
					}
				}

				.right {
					text-align: center;
					width: 230rpx;
					height: 146rpx;
					background: #EAF1FF;
					border-radius: 10rpx;

					.number {
						margin-top: 10rpx;
						font-size: 48rpx;
						font-weight: bold;
						color: #3270FF;
						font-style: initial;

						text {
							font-size: 28rpx;
						}
					}

					.name {
						margin-top: 15rpx;
						font-size: 26rpx;
						font-family: PingFang SC;
						font-weight: bold;
						color: #3270FF;
					}
				}
			}

			.down {
				display: flex;
				align-items: center;
				padding: 0 24rpx;

				button {
					height: 60rpx;
					line-height: 60rpx;
					padding: 0 47rpx;
					border-radius: 30rpx;
					font-size: 28rpx;
					background: linear-gradient(90deg, #FFA800, #F46813);
					border-radius: 30rpx;
					font-family: PingFang SC;
					font-weight: 500;
					color: #FFFFFF;
					margin-right: 0;
					margin-bottom: 20rpx;
				}
			}
		}


	}

	page {
		background: #FAFAFA;
	}

	.top {
		padding: 36rpx;
		background: #FAFAFA;
	}
</style>
